package com.qidian.qc.controller;

import com.qidian.mes.pojo.qc.QcIndex;
import com.qidian.mes.pojo.qc.QcTemplateIndex;
import com.qidian.mes.util.pojo.MESResult;
import com.qidian.qc.service.QcTemplateIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author 53邹李萍
 * @Company 起点编程
 * @Time 2023/11/2 9:32
 * @Description
 */
@CrossOrigin
@RestController
@RequestMapping("/templateIndex")
public class QcTemplateIndexController {
    @Autowired
    QcTemplateIndexService qcTemplateIndexService;

    @GetMapping("/list")//分页
    public MESResult list(@RequestParam(defaultValue = "1")int page, @RequestParam(defaultValue = "10") int limit, String templateIndex1){
        return qcTemplateIndexService.list(page,limit,templateIndex1);
    }
}
